<script type="text/javascript" >
//    stFacebookToolbox.load_tooltip();
    stFacebookToolboxcustom.on_submitform_new('#stFacebookToolboxForm');
    
    jQuery(document).ready(function(){
        jQuery('.stExtra').remove();
    });
    function toggleDiv(id, id1){
        stFacebookToolbox.loadPage('appPostcards', null, null, function(){
            toggleDiv('upload_field', 'uploadObject', 'createBucket');
        }); 
    }
</script>
<div class="w100p bgl">
    <div class="w100p bgr p5b inner_container ">
        <?php echo $functions->appPostcardMenu();?>
        <form class="stform" id="stFacebookToolboxForm" action="<?php echo admin_url('/admin.php?page=' . $config['plugin_name'] . '&action=' . $current_action) ?>" method="post" >
            <ul>
                <li>
                    <label><?php _e('Name', $config['plugin_name']); ?>:</label>
                    <div>
                        <input value="<?php echo $result->name ?>" class="" name="data[name]" id="name" type="text"/>
                    </div>
                    <br clear="both" />
                </li>
                
                <li>
                    <label><?php _e('Email', $config['plugin_name']); ?>:</label>
                    <div class="required">
                        <input value="<?php echo $result->email ?>" class="required email" name="data[email]" id="email1" type="text"/>
                    </div>
                    <br clear="both" />
                </li>
                
                <li>
                    <label><?php _e('Password', $config['plugin_name']); ?>:</label>
                    <div class="<?php echo !empty($result->id)? '':'required' ?>">
                        <input value="" class="<?php echo !empty($result->id)? '':'required' ?>" name="data[password]" id="password" type="password"/>
                    </div>
                    <br clear="both" />
                </li>
                
                <li>
                    <label><?php _e('Retype password', $config['plugin_name']); ?>:</label>
                    <div class="">
                        <input value="" class="" id="re-password" equalto="#password" type="password"/>
                    </div>
                    <br clear="both" />
                </li>
                
                
               
                <li>
                    <input type="submit" value="Submit"/>
                </li>
            </ul>
            <input type="hidden" value="<?php echo $result->id ?>" id="id" name="data[id]"/>
        </form>
    </div>
</div>